var Lottery_Rules = {
	
		"bjpk10qian1": {
			showname: '前一',
			rulecode: 'bjpk10qian1',
			realname: '[前一_前一]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 0.02,
			minMode:1850,
			startPrice:18.5,
			calculatePrize:Env.defaultCalculate,
			pageHtml : '<dl class="danqiu" id="bjpk10qian1"><dd><h5>冠军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10qian1_f_01">01</li><li id="bjpk10qian1_f_02">02</li>'
				+'<li id="bjpk10qian1_f_03">03</li><li id="bjpk10qian1_f_04">04</li><li id="bjpk10qian1_f_05">05</li><li id="bjpk10qian1_f_06">06</li>'
				+'<li id="bjpk10qian1_f_07">07</li><li id="bjpk10qian1_f_08">08</li><li id="bjpk10qian1_f_09">09</li><li id="bjpk10qian1_f_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10qian1_f_ful_1-10">全</li><li datascope="bjpk10qian1_f_big_1-10">大</li><li datascope="bjpk10qian1_f_sma_1-10">小</li>'
				+'<li datascope="bjpk10qian1_f_sin_1-10">单</li><li datascope="bjpk10qian1_f_dou_1-10">双</li><li datascope="bjpk10qian1_f_cle_1-10">清</li></ul></dd></dl>',
			bettips: '冠军 投注的1个号码与开奖号码的第一位号码相同且顺序一致，即为中奖。',
			betexample: '如：第一位选择01，开奖号码为01,*,*,*,*,*,*,*,*,*即为中奖。',
			bethelp: '冠军 投注的1个号码与开奖号码的第一位号码相同且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.f")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballC = way.get(this.rulecode + ".count.f");
					var itemcount = 0;
					itemcount=ballC;
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["f"];
				for(var k=0;k<1;k++)
				for (var i=1; i <= 10; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		
		},"bjpk10qian2": {
			showname: '复式',
			rulecode: 'bjpk10qian2',
			realname: '[前二_复式]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 0.02,
			minMode:1850,
			startPrice:166.5,
			calculatePrize:Env.defaultCalculate,
			pageHtml : '<dl class="danqiu" id="bjpk10qian2"><dd><h5>冠军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10qian2_f_01">01</li><li id="bjpk10qian2_f_02">02</li>'
				+'<li id="bjpk10qian2_f_03">03</li><li id="bjpk10qian2_f_04">04</li><li id="bjpk10qian2_f_05">05</li><li id="bjpk10qian2_f_06">06</li>'
				+'<li id="bjpk10qian2_f_07">07</li><li id="bjpk10qian2_f_08">08</li><li id="bjpk10qian2_f_09">09</li><li id="bjpk10qian2_f_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10qian2_f_ful_1-10">全</li><li datascope="bjpk10qian2_f_big_1-10">大</li><li datascope="bjpk10qian2_f_sma_1-10">小</li>'
				+'<li datascope="bjpk10qian2_f_sin_1-10">单</li><li datascope="bjpk10qian2_f_dou_1-10">双</li><li datascope="bjpk10qian2_f_cle_1-10">清</li></ul></dd>'
				+ '<dd><h5>亚军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10qian2_s_01">01</li><li id="bjpk10qian2_s_02">02</li>'
				+'<li id="bjpk10qian2_s_03">03</li><li id="bjpk10qian2_s_04">04</li><li id="bjpk10qian2_s_05">05</li><li id="bjpk10qian2_s_06">06</li>'
				+'<li id="bjpk10qian2_s_07">07</li><li id="bjpk10qian2_s_08">08</li><li id="bjpk10qian2_s_09">09</li><li id="bjpk10qian2_s_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10qian2_s_ful_1-10">全</li><li datascope="bjpk10qian2_s_big_1-10">大</li><li datascope="bjpk10qian2_s_sma_1-10">小</li>'
				+'<li datascope="bjpk10qian2_s_sin_1-10">单</li><li datascope="bjpk10qian2_s_dou_1-10">双</li><li datascope="bjpk10qian2_s_cle_1-10">清</li></ul></dd></dl>',
			bettips: '冠军，亚军 投注的2个号码与开奖号码的第一位、第二位号码相同且顺序一致，即为中奖。',
			betexample: '如：第一位选择01，第二位选择02.开奖号码为：01,02,*,*,*,*,*,*,*,*即为中奖。',
			bethelp: '冠军，亚军 投注的2个号码与开奖号码的第一位、第二位号码相同且顺序一致，即为中奖。',
			formatBalls : function(balls) {
				return formatBall(balls['f'])+','+formatBall(balls['s']);
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.f")||!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballF = way.get(this.rulecode + ".count.f");
					var ballS = way.get(this.rulecode + ".count.s");
					
					var itemcount = 0;
					
                    var selected_f_ball_array=way.get(this.rulecode + ".balls.f");
					
					var selected_s_ball_array=way.get(this.rulecode + ".balls.s");
					
					if(ballF>=1&&ballS>=1){
						var opFlag=false;
						for(var i=0;i<selected_f_ball_array.length;i++){
							var current_f_ball=selected_f_ball_array[i];
							for(var s=0;s<selected_s_ball_array.length;s++){
								var current_s_ball=selected_s_ball_array[s];
								if(current_f_ball!=undefined&&current_s_ball!=undefined){
									if(current_f_ball!=""&&current_s_ball!=""){
										if(eval(current_f_ball)!=eval(current_s_ball)){
											itemcount=itemcount+1;
										} else {
											//itemcount=0;
											//opFlag=true;
											//break;
											continue;
										}
									}
								}
							}
							/*if(opFlag){
								
								break;
							}*/
						}
					}
					if(itemcount==0){
						itemcount="0";
					}
					
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["f","s"];
				for(var k=0;k<2;k++)
				for (var i=1; i <= 10; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},
		"bjpk10qian2ds":{
			showname: '单式',
			rulecode: 'bjpk10qian2ds',
			realname: '[前二_单式]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 0.22,
			minMode:1850,
			startPrice:200.2,
			calculatePrize:Env.defaultCalculate,
			bettips: '手动输入号码，从01-10中任意输入2个号码组成一注。',
			betexample: '投注方案：0102； 开奖号码为：01,02,*,*,*,*,*,*,*,*即为中奖',
			bethelp: '手动输入号码，从01-10中任意输入2个号码组成一注，所选号码与开奖号码的第一位、第二位相同，且顺序一致，即为中奖。',
			textarea: {},
			vali: function(k) {
				var itemcount=0;
				if (way.get("Lottery.context")) {
					var v=way.get("Lottery.context");
					var reg=/(0[1-9]|1[01])(?!\1)(0[1-9]|1[01])/g;
					
					v = v.replace(/[^\d]/g, '');
					var sszz=util_unique(v, reg, 2);
					sszz = sszz.sort();
					if(sszz){
						itemcount=sszz.length;
						way.set("Lottery.contexts",sszz);
					}
				}
				if (way.get("Lottery.times")) {
					if(itemcount) {
						way.set("Lottery.itemcount", ""+itemcount);
					} else {
						way.set("Lottery.itemcount", "0");
					}
					var total = itemcount * way.get("Lottery.times") * way.get( "http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total) {
						way.set("Lottery.total", total.toFixed(4));
					} else { 
						way.set("Lottery.total", "0");
					}
				} else {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				}
			},
			changeContext:function(e){
				var k=String.fromCharCode(e.which);
				if(isNaN(parseInt(k))){
					if(k!=' '&&k!=','&&k!=';')
						e.returnValue=false;
				}
			},
			clear:function(){
				way.set("Lottery.context", "");
			}
		}, "bjpk10qian3": {
			showname: '复式',
			rulecode: 'bjpk10qian3',
			realname: '[前三_复式]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 0.02,
			minMode:1850,
			startPrice:1332,
			calculatePrize:Env.defaultCalculate,
			pageHtml : '<dl class="danqiu" id="bjpk10qian3"><dd><h5>冠军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10qian3_f_01">01</li><li id="bjpk10qian3_f_02">02</li>'
				+'<li id="bjpk10qian3_f_03">03</li><li id="bjpk10qian3_f_04">04</li><li id="bjpk10qian3_f_05">05</li><li id="bjpk10qian3_f_06">06</li>'
				+'<li id="bjpk10qian3_f_07">07</li><li id="bjpk10qian3_f_08">08</li><li id="bjpk10qian3_f_09">09</li><li id="bjpk10qian3_f_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10qian3_f_ful_1-10">全</li><li datascope="bjpk10qian3_f_big_1-10">大</li><li datascope="bjpk10qian3_f_sma_1-10">小</li>'
				+'<li datascope="bjpk10qian3_f_sin_1-10">单</li><li datascope="bjpk10qian3_f_dou_1-10">双</li><li datascope="bjpk10qian3_f_cle_1-10">清</li></ul></dd>'
				+ '<dd><h5>亚军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10qian3_s_01">01</li><li id="bjpk10qian3_s_02">02</li>'
				+'<li id="bjpk10qian3_s_03">03</li><li id="bjpk10qian3_s_04">04</li><li id="bjpk10qian3_s_05">05</li><li id="bjpk10qian3_s_06">06</li>'
				+'<li id="bjpk10qian3_s_07">07</li><li id="bjpk10qian3_s_08">08</li><li id="bjpk10qian3_s_09">09</li><li id="bjpk10qian3_s_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10qian3_s_ful_1-10">全</li><li datascope="bjpk10qian3_s_big_1-10">大</li><li datascope="bjpk10qian3_s_sma_1-10">小</li>'
				+'<li datascope="bjpk10qian3_s_sin_1-10">单</li><li datascope="bjpk10qian3_s_dou_1-10">双</li><li datascope="bjpk10qian3_s_cle_1-10">清</li></ul></dd>'
				+ '<dd><h5>季军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10qian3_t_01">01</li><li id="bjpk10qian3_t_02">02</li>'
				+'<li id="bjpk10qian3_t_03">03</li><li id="bjpk10qian3_t_04">04</li><li id="bjpk10qian3_t_05">05</li><li id="bjpk10qian3_t_06">06</li>'
				+'<li id="bjpk10qian3_t_07">07</li><li id="bjpk10qian3_t_08">08</li><li id="bjpk10qian3_t_09">09</li><li id="bjpk10qian3_t_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10qian3_t_ful_1-10">全</li><li datascope="bjpk10qian3_t_big_1-10">大</li><li datascope="bjpk10qian3_t_sma_1-10">小</li>'
				+'<li datascope="bjpk10qian3_t_sin_1-10">单</li><li datascope="bjpk10qian3_t_dou_1-10">双</li><li datascope="bjpk10qian3_t_cle_1-10">清</li></ul></dd></dl>',
			bettips: '冠军，亚军，季军 投注的3个号码与开奖号码的第一位、第二位、第三位号码相同且顺序一致，即为中奖。',
			betexample: '如：第一位选择01，第二位选择02.第三位03，开奖号码为：01,02,03,*,*,*,*,*,*,*即为中奖。',
			bethelp: '冠军，亚军，季军 投注的3个号码与开奖号码的第一位、第二位、第三位号码相同且顺序一致，即为中奖。',
			formatBalls : function(balls) {
				return formatBall(balls['f'])+','+formatBall(balls['s'])+','+formatBall(balls['t']);
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.f")||!way.get(this.rulecode + ".count.s")||!way.get(this.rulecode + ".count.t")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					
					var ballF = way.get(this.rulecode + ".count.f");
					var ballS = way.get(this.rulecode + ".count.s");
					var ballT = way.get(this.rulecode + ".count.t");

					var itemcount = 0;
					
                    var selected_f_ball_array=way.get(this.rulecode + ".balls.f");
					
					var selected_s_ball_array=way.get(this.rulecode + ".balls.s");
					
					var selected_t_ball_array=way.get(this.rulecode + ".balls.t");

					
					if(ballF>=1&&ballS>=1&&ballT>=1){
						
						var opFlag=false;
						
						for(var i=0;i<selected_f_ball_array.length;i++){
							
							var current_f_ball=selected_f_ball_array[i];
							
							if(current_f_ball!=undefined&&current_f_ball!=""){
								
								for(var s=0;s<selected_s_ball_array.length;s++){
									
									var current_s_ball=selected_s_ball_array[s];
									
									if(current_s_ball!=undefined&&current_s_ball!=""){
										
										if(eval(current_f_ball)!=eval(current_s_ball)){
											
											for(var t=0;t<selected_t_ball_array.length;t++){
												
												var current_t_ball=selected_t_ball_array[t];
			
												if(current_t_ball!=undefined&&current_t_ball!=""){
																										
													if(eval(current_t_ball)!=eval(current_s_ball)&&eval(current_t_ball)!=eval(current_f_ball)){
														
														itemcount=itemcount+1;
														
													}/*else{
														itemcount=0;
														opFlag=true;
														break;
													}*/
												}
											}
										}/*else{
											itemcount=0;
											opFlag=true;
											break;
										}*/
									}
									/*if(opFlag){
										
										break;
									}*/
								}
							}
							/*if(opFlag){
								
								break;
							}*/
						}
					}
					if(itemcount==0){
						itemcount="0";
					}					
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["f","s","t"];
				for(var k=0;k<3;k++)
				for (var i=1; i <= 10; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		}, "bjpk10qian3ds":{
			showname: '单式',
			rulecode: 'bjpk10qian3ds',
			realname: '[前三_单式]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 2,
			minMode:1850,
			startPrice:1820,
			calculatePrize:Env.defaultCalculate,
			bettips: '手动输入号码，从01-10中任意输入3个号码组成一注。',
			betexample: '投注方案：020304； 开奖号码为：02,03,04,*,*,*,*,*,*,*即为中奖',
			bethelp: '手动输入号码，从01-10中任意输入3个号码组成一注，所选号码与开奖号码的第一位、第二位、第三位相同，且顺序一致，即为中奖。',
			textarea: {},
			vali: function() {
				var itemcount=0;
				if (way.get("Lottery.context")) {
					var v=way.get("Lottery.context");
					var reg=/(0[1-9]|1[01])(?!\1)(0[1-9]|1[01])(?!\1|\2)(0[1-9]|1[01])/g;
					
					v = v.replace(/[^\d]/g, '');
					var sszz=util_unique(v, reg, 2);
					sszz = sszz.sort();
					if(sszz){
						itemcount=sszz.length;
						way.set("Lottery.contexts",sszz);
					}
				}
				if (way.get("Lottery.times")) {
					if(itemcount)
						way.set("Lottery.itemcount", ""+itemcount);
						else
						way.set("Lottery.itemcount", "0");
					var total = itemcount * way.get("Lottery.times") * way.get( "http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else
						way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				}
			},
			changeContext:function(e){
				var k=String.fromCharCode(e.which);
				if(isNaN(parseInt(k))){
					if(k!=' '&&k!=','&&k!=';')
						e.returnValue=false;
				}
			},
			clear:function(){
				way.set("Lottery.context","");
			}
		}, "bjpk10dwd": {
			showname: '定位胆',
			rulecode: 'bjpk10dwd',
			realname: '[定位胆_定位胆]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=10;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.02,
			minMode:1850,
			startPrice:18.5,
			calculatePrize:Env.defaultCalculate,
			pageHtml : '<dl class="danqiu" id="bjpk10dwd"><dd><h5>冠军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_f_01">01</li><li id="bjpk10dwd_f_02">02</li>'
				+'<li id="bjpk10dwd_f_03">03</li><li id="bjpk10dwd_f_04">04</li><li id="bjpk10dwd_f_05">05</li><li id="bjpk10dwd_f_06">06</li>'
				+'<li id="bjpk10dwd_f_07">07</li><li id="bjpk10dwd_f_08">08</li><li id="bjpk10dwd_f_09">09</li><li id="bjpk10dwd_f_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_f_ful_1-10">全</li><li datascope="bjpk10dwd_f_big_1-10">大</li><li datascope="bjpk10dwd_f_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_f_sin_1-10">单</li><li datascope="bjpk10dwd_f_dou_1-10">双</li><li datascope="bjpk10dwd_f_cle_1-10">清</li></ul></dd>'
				+ '<dd><h5>亚军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_s_01">01</li><li id="bjpk10dwd_s_02">02</li>'
				+'<li id="bjpk10dwd_s_03">03</li><li id="bjpk10dwd_s_04">04</li><li id="bjpk10dwd_s_05">05</li><li id="bjpk10dwd_s_06">06</li>'
				+'<li id="bjpk10dwd_s_07">07</li><li id="bjpk10dwd_s_08">08</li><li id="bjpk10dwd_s_09">09</li><li id="bjpk10dwd_s_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_s_ful_1-10">全</li><li datascope="bjpk10dwd_s_big_1-10">大</li><li datascope="bjpk10dwd_s_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_s_sin_1-10">单</li><li datascope="bjpk10dwd_s_dou_1-10">双</li><li datascope="bjpk10dwd_s_cle_1-10">清</li></ul></dd>'
				+ '<dd><h5>季军</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_t_01">01</li><li id="bjpk10dwd_t_02">02</li>'
				+'<li id="bjpk10dwd_t_03">03</li><li id="bjpk10dwd_t_04">04</li><li id="bjpk10dwd_t_05">05</li><li id="bjpk10dwd_t_06">06</li>'
				+'<li id="bjpk10dwd_t_07">07</li><li id="bjpk10dwd_t_08">08</li><li id="bjpk10dwd_t_09">09</li><li id="bjpk10dwd_t_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_t_ful_1-10">全</li><li datascope="bjpk10dwd_t_big_1-10">大</li><li datascope="bjpk10dwd_t_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_t_sin_1-10">单</li><li datascope="bjpk10dwd_t_dou_1-10">双</li><li datascope="bjpk10dwd_t_cle_1-10">清</li></ul></dd>'
				+'<dd><h5>第四名</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_fo_01">01</li><li id="bjpk10dwd_fo_02">02</li>'
				+'<li id="bjpk10dwd_fo_03">03</li><li id="bjpk10dwd_fo_04">04</li><li id="bjpk10dwd_fo_05">05</li><li id="bjpk10dwd_fo_06">06</li>'
				+'<li id="bjpk10dwd_fo_07">07</li><li id="bjpk10dwd_fo_08">08</li><li id="bjpk10dwd_fo_09">09</li><li id="bjpk10dwd_fo_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_fo_ful_1-10">全</li><li datascope="bjpk10dwd_fo_big_1-10">大</li><li datascope="bjpk10dwd_fo_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_fo_sin_1-10">单</li><li datascope="bjpk10dwd_fo_dou_1-10">双</li><li datascope="bjpk10dwd_fo_cle_1-10">清</li></ul></dd>'
				+'<dd><h5>第五名</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_fi_01">01</li><li id="bjpk10dwd_fi_02">02</li>'
				+'<li id="bjpk10dwd_fi_03">03</li><li id="bjpk10dwd_fi_04">04</li><li id="bjpk10dwd_fi_05">05</li><li id="bjpk10dwd_fi_06">06</li>'
				+'<li id="bjpk10dwd_fi_07">07</li><li id="bjpk10dwd_fi_08">08</li><li id="bjpk10dwd_fi_09">09</li><li id="bjpk10dwd_fi_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_fi_ful_1-10">全</li><li datascope="bjpk10dwd_fi_big_1-10">大</li><li datascope="bjpk10dwd_fi_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_fi_sin_1-10">单</li><li datascope="bjpk10dwd_fi_dou_1-10">双</li><li datascope="bjpk10dwd_fi_cle_1-10">清</li></ul></dd>'
				+'<dd><h5>第六名</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_si_01">01</li><li id="bjpk10dwd_si_02">02</li>'
				+'<li id="bjpk10dwd_si_03">03</li><li id="bjpk10dwd_si_04">04</li><li id="bjpk10dwd_si_05">05</li><li id="bjpk10dwd_si_06">06</li>'
				+'<li id="bjpk10dwd_si_07">07</li><li id="bjpk10dwd_si_08">08</li><li id="bjpk10dwd_si_09">09</li><li id="bjpk10dwd_si_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_si_ful_1-10">全</li><li datascope="bjpk10dwd_si_big_1-10">大</li><li datascope="bjpk10dwd_si_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_si_sin_1-10">单</li><li datascope="bjpk10dwd_si_dou_1-10">双</li><li datascope="bjpk10dwd_si_cle_1-10">清</li></ul></dd>'
				+'<dd><h5>第七名</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_se_01">01</li><li id="bjpk10dwd_se_02">02</li>'
				+'<li id="bjpk10dwd_se_03">03</li><li id="bjpk10dwd_se_04">04</li><li id="bjpk10dwd_se_05">05</li><li id="bjpk10dwd_se_06">06</li>'
				+'<li id="bjpk10dwd_se_07">07</li><li id="bjpk10dwd_se_08">08</li><li id="bjpk10dwd_se_09">09</li><li id="bjpk10dwd_se_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_se_ful_1-10">全</li><li datascope="bjpk10dwd_se_big_1-10">大</li><li datascope="bjpk10dwd_se_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_se_sin_1-10">单</li><li datascope="bjpk10dwd_se_dou_1-10">双</li><li datascope="bjpk10dwd_se_cle_1-10">清</li></ul></dd>'
				+'<dd><h5>第八名</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_ei_01">01</li><li id="bjpk10dwd_ei_02">02</li>'
				+'<li id="bjpk10dwd_ei_03">03</li><li id="bjpk10dwd_ei_04">04</li><li id="bjpk10dwd_ei_05">05</li><li id="bjpk10dwd_ei_06">06</li>'
				+'<li id="bjpk10dwd_ei_07">07</li><li id="bjpk10dwd_ei_08">08</li><li id="bjpk10dwd_ei_09">09</li><li id="bjpk10dwd_ei_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_ei_ful_1-10">全</li><li datascope="bjpk10dwd_ei_big_1-10">大</li><li datascope="bjpk10dwd_ei_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_ei_sin_1-10">单</li><li datascope="bjpk10dwd_ei_dou_1-10">双</li><li datascope="bjpk10dwd_ei_cle_1-10">清</li></ul></dd>'
				+'<dd><h5>第九名</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_ni_01">01</li><li id="bjpk10dwd_ni_02">02</li>'
				+'<li id="bjpk10dwd_ni_03">03</li><li id="bjpk10dwd_ni_04">04</li><li id="bjpk10dwd_ni_05">05</li><li id="bjpk10dwd_ni_06">06</li>'
				+'<li id="bjpk10dwd_ni_07">07</li><li id="bjpk10dwd_ni_08">08</li><li id="bjpk10dwd_ni_09">09</li><li id="bjpk10dwd_ni_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_ni_ful_1-10">全</li><li datascope="bjpk10dwd_ni_big_1-10">大</li><li datascope="bjpk10dwd_ni_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_ni_sin_1-10">单</li><li datascope="bjpk10dwd_ni_dou_1-10">双</li><li datascope="bjpk10dwd_ni_cle_1-10">清</li></ul></dd>'
				+ '<dd><h5>第十名</h5>'
				+ '<ul class="sz-qiu"><li id="bjpk10dwd_te_01">01</li><li id="bjpk10dwd_te_02">02</li>'
				+'<li id="bjpk10dwd_te_03">03</li><li id="bjpk10dwd_te_04">04</li><li id="bjpk10dwd_te_05">05</li><li id="bjpk10dwd_te_06">06</li>'
				+'<li id="bjpk10dwd_te_07">07</li><li id="bjpk10dwd_te_08">08</li><li id="bjpk10dwd_te_09">09</li><li id="bjpk10dwd_te_10">10</li></ul>'
				+ '<ul class="gongn"><li datascope="bjpk10dwd_te_ful_1-10">全</li><li datascope="bjpk10dwd_te_big_1-10">大</li><li datascope="bjpk10dwd_te_sma_1-10">小</li>'
				+'<li datascope="bjpk10dwd_te_sin_1-10">单</li><li datascope="bjpk10dwd_te_dou_1-10">双</li><li datascope="bjpk10dwd_te_cle_1-10">清</li></ul></dd></dl>',
			bettips: '冠军 从一号位置开始，选择最少一个、最多十个位置，任意1个位置或多个位置上选择1个号码，所选号码与相同位置上的开奖号码一致，即为中奖。',
			betexample: '冠军 如：第一位为01，开奖号码为01,*,*,*,*,*,*,*,*,*即为中奖。亚军 如：第二位为02，开奖号码为*,02,*,*,*,*,*,*,*,*即为中奖。季军 如：第三位为03，开奖号码为*,*,03,*,*,*,*,*,*,*即为中奖。第四名 如：第四名位为04，开奖号码为*,*,*,04,*,*,*,*,*,*即为中奖。第五名 如：第五名位为05，开奖号码为*,*,*,*,05,*,*,*,*,*即为中奖。第六名 如：第六名位为06，开奖号码为*,*,*,*,*,06,*,*,*,*即为中奖。第七名 如：第七名位为07，开奖号码为*,*,*,*,*,*,07,*,*,*即为中奖。第八名 如：第八名位为08，开奖号码为*,*,*,*,*,*,*,08,*,*即为中奖。第九名 如：第九名位为09，开奖号码为*,*,*,*,*,*,*,*,09,*即为中奖。第十名 如：第十名位为10，开奖号码为*,*,03,*,*,*,*,*,*,10即为中奖。',
			bethelp: '冠军 从一号位置开始，选择最少一个、最多十个位置，任意1个位置或多个位置上选择1个号码，所选号码与相同位置上的开奖号码一致，即为中奖。',
			formatBalls : function(balls) {
				return formatBall(balls['f'])+','+formatBall(balls['s'])+','+
					formatBall(balls['t'])+','+formatBall(balls['fo'])+','+formatBall(balls['fi'])
					+','+formatBall(balls['si'])+','+formatBall(balls['se'])+','+
					formatBall(balls['ei'])+','+formatBall(balls['ni'])+','+formatBall(balls['te']);
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.f")&&!way.get(this.rulecode + ".count.s")&&!way.get(this.rulecode + ".count.t")&&!way.get(this.rulecode + ".count.fo")&&!way.get(this.rulecode + ".count.fi")&&!way.get(this.rulecode + ".count.si")&&!way.get(this.rulecode + ".count.se")&&!way.get(this.rulecode + ".count.ei")&&!way.get(this.rulecode + ".count.ni")&&!way.get(this.rulecode + ".count.te")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					
					var itemcount = 0;
					var ballF = 0;
					var ballS =0;
					var ballT = 0;
					var ballFO = 0;
					var ballFI = 0;
					var ballSI = 0;
					var ballSE = 0;
					var ballEI = 0;
					var ballNI = 0;
					var ballTE = 0;

					if(way.get(this.rulecode + ".count.f"))ballF=way.get(this.rulecode + ".count.f");
					if(way.get(this.rulecode + ".count.s"))ballS=way.get(this.rulecode + ".count.s");
					if(way.get(this.rulecode + ".count.t"))ballT=way.get(this.rulecode + ".count.t");
					if(way.get(this.rulecode + ".count.fo"))ballFO=way.get(this.rulecode + ".count.fo");
					if(way.get(this.rulecode + ".count.fi"))ballFI=way.get(this.rulecode + ".count.fi");
					if(way.get(this.rulecode + ".count.si"))ballSI=way.get(this.rulecode + ".count.si");
					if(way.get(this.rulecode + ".count.se"))ballSE=way.get(this.rulecode + ".count.se");
					if(way.get(this.rulecode + ".count.ei"))ballEI=way.get(this.rulecode + ".count.ei");
					if(way.get(this.rulecode + ".count.ni"))ballNI=way.get(this.rulecode + ".count.ni");
					if(way.get(this.rulecode + ".count.te"))ballTE=way.get(this.rulecode + ".count.te");

					itemcount=ballF+ballS+ballT+ballFO+ballFI+ballSI+ballSE+ballEI+ballNI+ballTE;
					
					if(itemcount==0){
						
						itemcount="0";
					}
					
					way.set("Lottery.itemcount", ""+itemcount);
					
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["f","s","t","fo","fi","si","se","ei","ni","te"];
				for(var k=0;k<10;k++)
				for (var i=1; i <= 10; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		}, "bjpk10dxdy": {
			showname: '第一名',
			rulecode: 'bjpk10dxdy',
			realname: '[大小_第一名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10dxdy">' + 
				'<dd><h5>第一名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10dxdy_zu_0">大</li><li id="bjpk10dxdy_zu_1">小</li>' + 
				'</ul></dd></dl>',
			bettips: '选择第一名车号的大小，1-5为小，6-10为大，若相符则中奖。',
			betexample: '如：选择大，开奖号码的第一位为06或07或08或09或10，即为中奖。',
			bethelp: '选择第一名车号的大小，1-5为小，6-10为大，若相符则中奖。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "大");
				codes = codes.replace(new RegExp('1', 'g'), "小");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10dxdy_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10dxde": {
			showname: '第二名',
			rulecode: 'bjpk10dxde',
			realname: '[大小_第二名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10dxde">' + 
				'<dd><h5>第二名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10dxde_zu_0">大</li><li id="bjpk10dxde_zu_1">小</li>' + 
				'</ul></dd></dl>',
			bettips: '选择第二名车号的大小，1-5为小，6-10为大，若相符则中奖。',
			betexample: '如：选择大，开奖号码的第二位为06或07或08或09或10，即为中奖。',
			bethelp: '选择第二名车号的大小，1-5为小，6-10为大，若相符则中奖。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "大");
				codes = codes.replace(new RegExp('1', 'g'), "小");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10dxde_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10dxds": {
			showname: '第三名',
			rulecode: 'bjpk10dxds',
			realname: '[大小_第三名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10dxds">' + 
				'<dd><h5>第三名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10dxds_zu_0">大</li><li id="bjpk10dxds_zu_1">小</li>' + 
				'</ul></dd></dl>',
			bettips: '选择第三名车号的大小，1-5为小，6-10为大，若相符则中奖。',
			betexample: '如：选择大，开奖号码的第三位为06或07或08或09或10，即为中奖。',
			bethelp: '选择第三名车号的大小，1-5为小，6-10为大，若相符则中奖。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "大");
				codes = codes.replace(new RegExp('1', 'g'), "小");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10dxds_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10dsdy": {
			showname: '第一名',
			rulecode: 'bjpk10dsdy',
			realname: '[单双_第一名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10dsdy">' + 
				'<dd><h5>第一名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10dsdy_zu_0">单</li><li id="bjpk10dsdy_zu_1">双</li>' + 
				'</ul></dd></dl>',
			bettips: '选择第一名车号的单双，1 3 5 7 9为单，2 4 6 8 10为双，若相符则中奖。',
			betexample: '如：选择单，开奖号码的第一位为01或03或05或07或09，即为中奖。',
			bethelp: '选择第一名车号的单双，1 3 5 7 9为单，2 4 6 8 10为双，若相符则中奖。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "单");
				codes = codes.replace(new RegExp('1', 'g'), "双");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10dsdy_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10dsde": {
			showname: '第二名',
			rulecode: 'bjpk10dsde',
			realname: '[单双_第二名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10dsde">' + 
				'<dd><h5>第二名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10dsde_zu_0">单</li><li id="bjpk10dsde_zu_1">双</li>' + 
				'</ul></dd></dl>',
			bettips: '选择第二名车号的单双，1 3 5 7 9为单，2 4 6 8 10为双，若相符则中奖。',
			betexample: '如：选择单，开奖号码的第二位为01或03或05或07或09，即为中奖。',
			bethelp: '选择第二名车号的单双，1 3 5 7 9为单，2 4 6 8 10为双，若相符则中奖。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "单");
				codes = codes.replace(new RegExp('1', 'g'), "双");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10dsde_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10dsds": {
			showname: '第三名',
			rulecode: 'bjpk10dsds',
			realname: '[单双_第三名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10dsds">' + 
				'<dd><h5>第三名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10dsds_zu_0">单</li><li id="bjpk10dsds_zu_1">双</li>' + 
				'</ul></dd></dl>',
			bettips: '选择第三名车号的单双，1 3 5 7 9为单，2 4 6 8 10为双，若相符则中奖。',
			betexample: '如：选择单，开奖号码的第三位为01或03或05或07或09，即为中奖。',
			bethelp: '选择第三名车号的单双，1 3 5 7 9为单，2 4 6 8 10为双，若相符则中奖。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "单");
				codes = codes.replace(new RegExp('1', 'g'), "双");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10dsds_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10lhdy": {
			showname: '第一名',
			rulecode: 'bjpk10lhdy',
			realname: '[龙虎_第一名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10lhdy">' + 
				'<dd><h5>第一名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10lhdy_zu_0">龙</li><li id="bjpk10lhdy_zu_1">虎</li>' + 
				'</ul></dd></dl>',
			bettips: '龙：冠军号码大于第十名号码视为“龙”中奖，如冠军开出07，第十名开出03。否则是虎。',
			betexample: '如：选择龙，开奖号码的第一位为03，第十位为01，即为中奖。',
			bethelp: '龙：冠军号码大于第十名号码视为“龙”中奖，如冠军开出07，第十名开出03。否则是虎。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "龙");
				codes = codes.replace(new RegExp('1', 'g'), "虎");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10lhdy_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10lhde": {
			showname: '第二名',
			rulecode: 'bjpk10lhde',
			realname: '[龙虎_第二名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10lhde">' + 
				'<dd><h5>第二名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10lhde_zu_0">龙</li><li id="bjpk10lhde_zu_1">虎</li>' + 
				'</ul></dd></dl>',
			bettips: '龙：亚军号码大于第九名号码视为“龙”中奖，如亚军开出07，第九名开出03。否则是虎。',
			betexample: '如：选择龙，开奖号码的第二位为03，第九位为01，即为中奖。',
			bethelp: '龙：亚军号码大于第九名号码视为“龙”中奖，如亚军开出07，第九名开出03。否则是虎。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "龙");
				codes = codes.replace(new RegExp('1', 'g'), "虎");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10lhde_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}, "bjpk10lhds": {
			showname: '第三名',
			rulecode: 'bjpk10lhds',
			realname: '[龙虎_第三名]',
			maxMultiplePerOrder: -1,
			maxPrize: -1,
			maxRecord: -1,
			startPrice: 15.4,
			minMode: 1850,
			calculatePrize: Env.defaultCalculate,
			pageHtml: '<dl class="danqiu" id="bjpk10lhds">' + 
				'<dd><h5>第三名</h5>' + 
				'<ul class="sz-qiu">' + 
				'<li id="bjpk10lhds_zu_0">龙</li><li id="bjpk10lhds_zu_1">虎</li>' + 
				'</ul></dd></dl>',
			bettips: '龙：季军号码大于第八名号码视为“龙”中奖，如季军开出07，第八名开出03。否则是虎。',
			betexample: '如：选择龙，开奖号码的第三位为03，第八位为01，即为中奖。',
			bethelp: '龙：季军号码大于第八名号码视为“龙”中奖，如季军开出07，第八名开出03。否则是虎。',
			replaceCode: function(codes) {
				codes = codes.replace(new RegExp('0', 'g'), "龙");
				codes = codes.replace(new RegExp('1', 'g'), "虎");
				return codes;
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.zu")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.zu");

					way.set("Lottery.itemcount", ""+itemcount);

					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;

					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear: function() {
				var ss = ["zu"];
				for (var k = 0; k < 1; k++)
					for (var i = 0; i <= 1; i++) {
						var item = $("#bjpk10lhds_" + ss[k] + "_" + i);
						if (item.hasClass("cur")) {
							item.trigger('click');
						}
					}
			}
		}
};